<?php error_reporting(0) ?>
<input 
    type="hidden" 
    value="<?php echo $item->type_id ?>" 
    id="type_id" name="type_id"
    />
<form id="_form_edit_panel" name="_form_edit_panel" 
      action="" method="POST" onsubmit="return false;"
      target="integration_asynchronous" autocomplete="off">
    <div class="widget- row-fluid">
        <div class="well form-horizontal" style="border:none">
            
            <div class="control-group">
                <label class="control-label">Title :</label>
                <div class="controls">
                    <input type="text" 
                           class="span12 validate[required]"
                           data-prompt-position="topLeft:-1,-5"
                           id="type_title" name="type_title" 
                           value="<?php echo quotes_to_entities($item->type_title) ?>"
                           />
                </div>
            </div>
            
            <input type="hidden" name="type_type" id="type_type" 
				value="<?php echo !empty($item->album_type)?quotes_to_entities($item->album_type):$type ?>"/>
            
            <div class="control-group">
                <label class="control-label">Desc :</label>
                <div class="controls">
                    <textarea 
                        rows="1"
                        id="type_desc" name="type_desc" class="span12"
                        ><?php echo quotes_to_entities($item->type_desc) ?></textarea>

                </div>
            </div>
			<div class="control-group">
				<label class="control-label">&nbsp;</label>
				<div class="controls">
					<div class="span6">
						<div>POSITION</div>
						<input type="number" 
							class="span12"
							id="type_position" name="type_position" 
							value="<?php echo $item->type_position ?>"
							/>
					</div>
					<div class="span6">
						<div>STATUS</div>
						<select id="type_status" name="type_status" class=" span12">
							<option value="true" <?php if($item->type_status!='false') echo 'selected=1' ?>>ENABLE</option>
							<option value="false">DISABLE</option>
						</select>
						
					</div>
				</div>
			</div>
            <div class="control-group">
                <label class="control-label">&nbsp;</label>
                <div class="controls">
                    <div>
                        <?php if (!empty($item->type_insert)) echo "Created  : $item->type_insert" ?>
                    </div>
                    <div>
                        <?php if (!empty($item->type_insert)) echo "Modified : $item->type_insert" ?>
                    </div>
                </div>
            </div>
            
        </div>
    </div>
    
</form>